﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimCMS.Model;
using SimCMS.Repository;

namespace SimCMS.Manager
{
    public class SimFCategoryManager : ISimFCategoryManager
    {
        public IRepository<SimFCategory> SimFCategoryRepository { get; set; }

        public object Save(SimFCategory entity)
        {
            return this.SimFCategoryRepository.Save(entity);
        }

        public void Delete(object id)
        {
            this.SimFCategoryRepository.Delete(this.Get(id));
        }

        public SimFCategory Get(object id)
        {
            return this.SimFCategoryRepository.Get(id);
        }

        public IList<SimFCategory> LoadAll()
        {
            return this.SimFCategoryRepository.LoadAll();
        }

        public void Update(SimFCategory entity)
        {
            this.SimFCategoryRepository.Update(entity);
        }
    }
}
